import java.util.Scanner;
public class no1 {
    public static void main(String[] args) {
        int num;
        Scanner scnum = new Scanner(System.in);
        System.out.println("请输入一个四位数整数：");
        num = scnum.nextInt();
        int ge = num % 10;
        int shi = num / 10 % 10;
        int bai = num / 100 % 10;
        int qian = num / 1000;
        System.out.println("该四位数的千位是："+qian);
        System.out.println("该四位数的百位是："+bai);
        System.out.println("该四位数的十位是："+shi);
        System.out.println("该四位数的个位是："+ ge);
    }
}
